package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.entity.ApiOrderList;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : PaiTaSuo
 * Date : 2016/6/4
 * Description :
 */
public class ApiGetOrderList<T> extends ApiBaseParamAbstract {
    private String mStatus;
    private String mIndex;

    public ApiGetOrderList(int index, String status, MyRetroCallBack<T> myRetroCallBack) {
        super(myRetroCallBack);
        mStatus = status;
        mIndex = String.valueOf(index);
    }

    @Override
    public Call<RootResult<ApiOrderList>> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getOrderList(mStatus, mIndex);
    }
}
